const request = require('./api.js')

// 获取个人信息
export const getUserInfo = (params) =>{
	return request.default.get('/home/userInfo',params)
}
//发送验证码
export const getGenSmsCode = (phone) =>{
	return request.default.get('/home/sendSms',{phone})
}

// 获取accid
export const getIMAccid = (params) => {
	return request.default.get('/common/getUid', params)
}

// 首页轮播图
export const getHomeCarousel = (params) =>{ //  由原来的type改为status  1首页轮播 2建材商城 3装修金商城
	return request.default.get('/home/carousel',params)
}
// 首页 讲述
export const getHometellAbout = (params) =>{
	return request.default.get('/home/tell',params)
}

// 首页 找灵感
export const getHomeFindInspiration = (params) =>{
	return request.default.get('/home/idea',params)
}

//设计案列
export const getDesignNav = (params) =>{
	return request.default.get('/design/designNav',params)
}

// 工匠店铺分类列表
export const getGZGnavList = (params) =>{
	return request.default.get('/shop/gzGnav',params)
}

//设计案列列表
export const getDesign= (params) =>{
	return request.default.get('/design/design',params)
}
// 获取富文本
export const getFwb = (params) =>{
	return request.default.get('/my/rule',params) //2 注册协议 3意思协议 6 城市 7 入驻
}

// 开屏图
export const getStartup = (params) =>{
	return request.default.get('/common/indexPic',params) 
}

// 获取区域
export const getCommonArea = (params) =>{
	return request.default.get('/common/area',params) 
}

// 获取当前经纬转cityId
export const getCityName = (params) =>{
	return request.default.get('/home/getName',params) 
}


// 建材成8大金刚
export const getbuildingMaterialsCityType = (params) =>{
	return request.default.get('/build/indexNav',params) 
}

// 建材成list 20211208 废弃
export const getbuildingMaterialsCitysGoodsList = (params) =>{
	return request.default.get('/build/goods',params) 
}

// 设计师店铺列表
export const getFindDesignshopList = (params) =>{
	return request.default.get('/design/designerShop',params) 
}

// 小区总部自营店铺列表
export const getFindCraftsman = (params) =>{
	return request.default.get('/shop/gzList',params) 
}

// 建材城分类
export const getTabList = (params) =>{
	return request.default.get('/build/nav',params)
}

// 工匠sku
export const gzGoodsSku = (params) =>{
	return request.default.get('/shop/gzGoodsSku',params)
}

// 默认房屋档案
export const getDefaultHouse = (params) =>{
	return request.default.get('/my/defaultHouse',params)
}

// 猜你喜欢
export const getGuessYouLike = (params) =>{ // type 1工长商品 type 不是
	return request.default.get('/home/caiLike',params)
}

// 所有商品猜你喜欢
export const getGuessYouLikezong = (params) =>{ // type 1工长商品 type 不是
	return request.default.get('/home/caiLikezong',params)
}

export const getGuessYouLikeZXJ = (params) =>{ 
	return request.default.get('/fitment/caiLike',params)
}


export const getQuotationSystemList = (params) =>{
	return request.get('/my/offer',params)
}

// 获取配置
export const commonGetConfig = (params) =>{
	return request.default.get('/common/getConfig',params)
}

// 首页活动
export const getOrderIndexActivity = (params) =>{
	return request.default.get('/order/indexActivity',params) 
}

// 建材城活动Nav
export const getJCCGoodsNav = (params) =>{
  return request.default.get('/shop/activityNav',params)
}

// 店铺信息
export const getShopList = (params) =>{
	return request.default.get('/build/shopList',params)
}

export const getDGGoodsList = (params) =>{
	return request.default.get('/fitment/goods',params)
}
//  建材城活动List
export const getJCCGoodsList = (params) =>{
  return request.default.get('/shop/activity',params)
}




// 商家 店铺list
export const getShopListDefault = (params) =>{
	return request.default.get('/my/shopManage',params)
}

// 店铺详情
export const getShopDetail = (params) =>{
	return request.default.get('/shop/shopInfo',params)
}

// （建材城、设计师）店铺商品列表
export const getGoodsList = (params) =>{
	return request.default.get('/build/goodsList',params)
}

// 工匠店铺商品列表
export const getGZGoodsList = (params) =>{
	return request.default.get('/shop/gzGoods',params)
}


// 日报审核 list
export const getDailyReviewList = (params) =>{
	return request.default.get('/my/auditList',params)
}


// 日报审核 
export const setDailyReview = (params) =>{
	return request.default.post('/my/auditDaily',params)
}


// 插入聊天记录
export const chatrecord_add= (params) =>{ 
	return request.default.post('/im/chatrecord_add',params)
}

// 查询聊天记录
export const chatrecord_get= (params) =>{ 
	return request.default.post('/im/chatrecord_get',params)
}

// 查询会话记录
export const conversation_get= (params) =>{ 
	return request.default.post('/im/conversation_get',params)
}

// 投票列表
export const getvote_list= (params) =>{ 
	return request.default.get('/my/getvote_list',params)
}

// 投票详情
export const getvote_detail= (params) =>{ 
	return request.default.get('/my/getvote_detail',params)
}

// 投票给某个
export const getvote_edit= (params) =>{ 
	return request.default.get('/my/getvote_edit',params)
}

//工艺标准分类
export const getStandardNav = (params) =>{   
	return request.default.get('/standard/standardNav',params)
}

//工艺标准详情
export const getStandardInfo = (params) =>{   
	return request.default.get('/standard/standardInfo',params)
}

//获取小区公告
export const getStandard = (params) =>{   //工艺标准列表
	return request.default.get('/standard/standard',params)
}


//发商品咨询短信
export const getzixunSmsCode = (params) =>{
	return request.default.get('/home/getzixunSmsCode',params)
}

//发故障报修短信
export const getguzhangSmsCode = (params) =>{
	return request.default.get('/home/getguzhangSmsCode',params)
}